<!DOCTYPE HTML>
<HTML lang="en">
<HEAD>
    <META content='text/html; charset=UTF-8' http-equiv=Content-Type>
    <META name=GENERATOR content='MSHTML 8.00.6001.19019'>
    <TITLE>Check Report</TITLE>
    <style>
        pre {
            font-size: 16px;
            font-family: "微软雅黑";
        }
    </style>
</HEAD>
<BODY>
<H2 align='center'>{{ resourceBundle.get('check.report') }}</H2><BR>
<table border=0 cellSpacing=0 width='90%' align=center style='WORD-WRAP: break-word;word-break:break-all;'>
    <tr style='font-size: 17px;'>
        <td align='left' width='230'><b><a style='color:blue; text-decoration:underline;' href="../ItemSummary.html">{{ resourceBundle.get('to.summary.report') }}</a></b></td>
        <td></td>
    </tr>
</table>
<br>
<br>
<TABLE border=0 cellSpacing=0 width='90%' align=center style='WORD-WRAP: break-word;word-break:break-all;'>
    <TBODY>
    <TR>
        <TD style='COLOR: blue' align='left' width='230'>{{ resourceBundle.get('inspection.item.name') + resourceBundle["colon"] }}</TD>
        <TD align='left'>{{ checkItemInfo["name"] }}</TD>
    </TR>
    <TR>
        <TD style='COLOR: blue' align='left' width='230'>{{ resourceBundle.get('importance') + resourceBundle["colon"] }}</TD>
        <TD align='left'>{{ checkItemInfo["importance"] }}</TD>
    </TR>
    <TR>
        <TD style='COLOR: blue' valign='top' width='230'>{{ resourceBundle.get('introduction.to.check.items') + resourceBundle["colon"] }}</TD>
        <TD align='left'><span align='left'>{{ checkItemInfo["taskInfo"] }}</span></TD>
    </TR>
    </TBODY>
</TABLE>
<BR>
<!--level 总数信息-->
<TABLE border=0 cellSpacing=0 width='90%' align=center style='WORD-WRAP: break-word;word-break:break-all;'>
    <TBODY>
    <TR>
        <TD align='left'><span>{{ resourceBundle.get('total') + resourceBundle["colon"] + nodeHealthStatistics.get('total') + resourceBundle["semicolon"] }}</span>
            <span style='cursor: pointer;'
                  title='Passing : The check result is normal.'>
                 <span>{{ resourceBundle.get('passing') + resourceBundle["colon"] + nodeHealthStatistics.get('passing') + resourceBundle["semicolon"] }}</span></span>
            <span style='cursor: pointer;'
                  title='Not Passed : The check result is abnormal, you are advised to take corrective measures.'>
                 <span>{{ resourceBundle.get('not.passed') + resourceBundle["colon"] + nodeHealthStatistics.get('notPassed') + resourceBundle["semicolon"] }}</span></span>
            <span style='cursor: pointer;'
                  title='Execution Failed : Script execution execution failed. Manual confirmation is required.'>
                <span>{{ resourceBundle.get('execution.failed') + resourceBundle["colon"] + nodeHealthStatistics.get('executionFailed') + resourceBundle["semicolon"] }}</span></span>
        </TD>
    </TR>
    </TBODY>
</TABLE>
<BR><BR>
<!--节点列表 -->
<TABLE align='center' border='1' bordercolor='#355e82' cellspacing='0' width='90%'
       style='WORD-WRAP: break-word;word-break:break-all;'>
    <THEAD>
    <TR bgcolor='#ffffff'>
        <TH align='center' style='BACKGROUND-COLOR: #C0C0C0' width=150">{{ resourceBundle.get('execution.node.ip') }}</TH>
        <TH align='center' style='BACKGROUND-COLOR: #C0C0C0' width=250>{{ resourceBundle.get('execution.node.name') }}</TH>
        <TH align='center' style='BACKGROUND-COLOR: #C0C0C0' width=200>{{ resourceBundle.get('inspection.result') }}</TH>
        <TH align='center' style='BACKGROUND-COLOR: #C0C0C0'>{{ resourceBundle.get('handling.suggestions') }}</TH>
    </TR>
    </THEAD>
    {% for nodeItem in healthcheckInfo %}
    <TBODY>
    <TR>
        <TD width=150 align='center' id="{{ nodeItem["name"] }}"><a href="{{ '#'+nodeItem["ip"] }}">{{ nodeItem["ip"] }}</a></TD>
        <TD width=300 align='center'>{{ nodeItem["name"] }}</TD>
        <TD width=200 align='center'
                {% if nodeItem["errLevel"] == 1 or nodeItem["errLevel"] == 2 or nodeItem["errLevel"] == 3 %}
                    style='BACKGROUND-COLOR:red; color: white'
                {% elif nodeItem["errLevel"] == 0 %}
                    style='BACKGROUND-COLOR:green; color: white'
                {% elif nodeItem["errLevel"] == 4 %}
                    style='BACKGROUND-COLOR:yellow; color:black'
                {% endif %}
        >
            {{ resourceBundle[nodeItem["status"]] }}
        </TD>
        <TD {% if nodeItem["isFirst"] %}rowspan="{{ nodeItem["rowspan"] }}"{% endif %}>{{ nodeItem["suggestion"] }}</TD>
    </TR>
    </TBODY>
    {% endfor %}
</TABLE>
<BR><BR>

<!--分别为执行失败、不通过、 通过的节点详情 -->
{% for nodeItem in healthcheckInfo %}

<TABLE align='center' border=1 bordercolor='#355e82' cellspacing='0' width='90%' style='WORD-WRAP: break-word;word-break:break-all;margin-top: 2em'>
    <tbody>
        <TR>
            <TD id="{{ nodeItem["ip"] }}"
                {% if nodeItem["errLevel"] == 1 or nodeItem["errLevel"] == 2 or nodeItem["errLevel"] == 3 %}
                    style='BACKGROUND-COLOR:red; color: white'
                {% elif nodeItem["errLevel"] == 0 %}
                    style='BACKGROUND-COLOR:green; color: white'
                {% elif nodeItem["errLevel"] == 4 %}
                    style='BACKGROUND-COLOR:yellow'
                {% endif %}
            >
                <a style="color: white" href="{{ '#'+ nodeItem["name"] }}">{{ nodeItem["ip"] + resourceBundle["colon"] + nodeItem["name"] }}</a>
            </TD>
        </TR>
        <TR>
            <TD>
                <strong><span style="color: blue; ">{{ resourceBundle.get('importance') + resourceBundle["colon"] }}</span></strong>
                <span>{{ resourceBundle[nodeItem["importance"]] }}</span><BR><BR>
                <strong><span style="color: blue; ">{{ resourceBundle.get('check.result') + resourceBundle["colon"] }}</span></strong>
                <span>{{ resourceBundle[nodeItem["status"]] }}</span><BR><BR>
                <strong><span style="color: blue; ">{{ resourceBundle.get('description') + resourceBundle["colon"] }}</span></strong><BR>
                <span><BR>{{ nodeItem["description"] }}</span> <BR>
            </TD>
        </TR>
        <TR>
            <TD><strong><span style="color: blue; ">{{ resourceBundle["introduction.to.check.items"] + resourceBundle["colon"] }}</span></strong><BR>
                <span style="white-space: pre-line">{{ nodeItem["suggestion"] }}</span>
            </TD>
        </TR>
    </tbody>
</TABLE>
<BR><BR>
{% endfor %}
<BR><BR>

</BODY>
</HTML>